package cn.mzboy.product.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProductController {

    @GetMapping("/findProductById/{productId}")
    public String findProductById(@PathVariable(name = "productId",required = false) String productId){
        System.out.println("product");
        return "productId is "+productId+", product is apple and Orange";
    }

    @GetMapping("/")
    public String Hello(){
        return "Hello here is Product";
    }
}
